
/**
 * 
 */

class LineWidget extends UIDockWidget{

	/**
	 * 
	 */
	private final rgbEditor rgbEditor;

	public LineWidget(rgbEditor rgbEditor, float w, float h, UIDock p){
		super(rgbEditor, w,h,"Lines",p);
		this.rgbEditor = rgbEditor;
		normalIcon = this.rgbEditor.loadImage("line.png");
		hoverIcon = normalIcon;
		selectedIcon = this.rgbEditor.loadImage("line.png");
		selectedIcon.filter(rgbEditor.INVERT);
	}

	public LineWidget(rgbEditor rgbEditor, UIDock p){
		this(rgbEditor, p.dockWidth,p.dockWidth,p);
	}

	public void onSelect(){
		this.rgbEditor.toolType = this.rgbEditor.TOOL_LINE;
		selectMe();
		mode = this.rgbEditor.SELECTED;
		return;
	}
}